package com.demo.bbdd;

import android.database.Cursor;
import android.provider.BaseColumns;

public class CursorUtils {

	public static String getString(Cursor c, String column) {
		return c.getString(c.getColumnIndex(column));
	}
	
	public static Double getDouble(Cursor c, String column) {
		return Double.valueOf(getString(c, column)).doubleValue();
	}
	
	public static int getId(Cursor c) {
		return c.getInt(c.getColumnIndex(BaseColumns._ID));
	}
	
}
